Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop loading CSS, JS from third-party CDNs #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

FestplattenSchnitzel
Copy link
Member

No description provided.

@ibot3
Copy link
Member

ibot3 commented Dec 16, 2022

Looks good but it may not work in production because there the app is mounted in a subdirectory. And until now I did not get django to work correctly in this scenario. It always tried to load the static resources from the root /.

But we can try. And there already was a plan to migrate the application to a subdomain.

@mmarx
Copy link
Member

mmarx commented Dec 17, 2022

Looks good but it may not work in production because there the app is mounted in a subdirectory. And until now I did not get django to work correctly in this scenario. It always tried to load the static resources from the root /.

In theory, all you need to do is set STATIC_URL correctly and run manage.py collectstatic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants